package com.anycl.design.j2ee.businessdelegate;

public class Main {

    public static void main(String[] args) {
        // 业务代表
        BusinessDelegate businessDelegate = new BusinessDelegate("type1");
        // 制定客户的业务代表是businessDelegate
        Client client = new Client(businessDelegate);
        // 客户办理业务
        client.doTask();
    }
}
